﻿using System;
using System.Windows;
using System.Windows.Controls;

namespace hr_1.View
{
    /// <summary>
    /// Interaction logic for Page1.xaml
    /// </summary>
    
    public partial class Position_show_position : Page
    {
        public HRDataContext hrData = new HRDataContext();
        public Position_show_position()
        {
            InitializeComponent();
            dataGrid_positions.ItemsSource = hrData.work_activities;
        }      

        private void Save_Click(object sender, RoutedEventArgs e)
        {
            hrData.SubmitChanges();
            MessageBox.Show("Изменения сохранены");
        }
        private void Cancel_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("View/MainPage.xaml", UriKind.Relative));
        }
    }
}

